package com.future.mayi.qsale.activity;

import android.view.View;
import android.widget.TextView;

import com.future.mayi.R;
import com.future.mayi.activity.BaseTitleActivity;
import com.future.mayi.activity.RecycleOrderActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2018/8/16.
 */

public class SucceedConsignActivity extends BaseTitleActivity {

    public static final String EXTRA_ORDER_ID = "extra_order_id";
    public static final String EXTRA_ORDER_TYPE = "extra_order_type";

    @BindView(R.id.btn_view_order_detail)
    TextView btnViewOrderDetail;
    private String orderId;
    private int orderType;

    @Override
    protected void initLayout() {
        setContentView(R.layout.activity_succeed_consign);
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initDates() {
        orderId = getIntent().getStringExtra(EXTRA_ORDER_ID);
        orderType = getIntent().getIntExtra(EXTRA_ORDER_TYPE, 1);
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initTopBar() {
        initBack();
        getTitleText().setText("预约成功");
    }


    @OnClick({R.id.btn_view_order_detail})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_view_order_detail:
                RecycleOrderActivity.startActivity(SucceedConsignActivity.this, orderId, orderType);
                break;
        }
    }
}
